﻿using System.ComponentModel.DataAnnotations;

namespace Transport.Core.Models.Settings
{
    public class PostOffice
    {
        [Key]
        public int PostOfficeId { get; set; }
        [Required]
        [StringLength(128)]
        public string PostOfficeName { get; set; }
        [StringLength(128)]
        public string Address { get; set; }
        [StringLength(24)]
        public string PhoneNumber { get; set; }
        [StringLength(24)]
        public string PostOfficeCode { get; set; }
        [ForeignKey("StateProvince")]
        public int StateProvinceId { get; set; }
        public virtual StateProvince StateProvince { get; set; }
        public bool IsDeleted { get; set; }
    }
}
